<!--
 * Created by sf
 * 2019/12/5
 -->

<!--功能使用次数-->

<template>
  <el-card
    shadow="never"
    class="aui-card--fill">
    <ve-wordcloud :data="chartData" />
  </el-card>
</template>

<script>
import VeWordcloud from 'v-charts/lib/wordcloud.common'

export default {
  components: { VeWordcloud },
  data () {
    return {
      index: 0,
      typeArr: ['line', 'histogram', 'pie'],
      chartData: {
        columns: ['word', 'count'],
        rows: [{
          'word': '微波',
          'count': 22199
        }, {
          'word': '烧烤',
          'count': 10288
        }, {
          'word': '发酵',
          'count': 620
        }, {
          'word': '解冻',
          'count': 274470
        }, {
          'word': '热风对流',
          'count': 12311
        }, {
          'word': '清洁',
          'count': 1206
        }, {
          'word': 'piecewise',
          'count': 4885
        }, {
          'word': '蒸汽',
          'count': 32294
        }, {
          'word': '煮米饭',
          'count': 18574
        }, {
          'word': '排骨',
          'count': 38929
        }, {
          'word': '红烧豆腐',
          'count': 969
        }, {
          'word': '银耳莲子',
          'count': 37517
        }, {
          'word': '鸡翅',
          'count': 12053
        }, {
          'word': '银耳莲子',
          'count': 57299
        }]
      }
    }
  },
  created () {
  },
  methods: {
  }
}
</script>
